package com.cpecc.model.wuzi;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "DATA_TUPIAN")
public class TuPian implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 9097310568639158235L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@ManyToOne
	@JoinColumn(name="WUZI_ID")
	private WuZi wuZi;
	
	@Column(length=32)
	private String xiangDuiLJ;
	
	@Column(length=64)
	private String ysWJM;
	
	@Column(length=30)
	private String wenJianM;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public WuZi getWuZi() {
		return wuZi;
	}

	public void setWuZi(WuZi wuZi) {
		this.wuZi = wuZi;
	}

	public String getXiangDuiLJ() {
		return xiangDuiLJ;
	}

	public void setXiangDuiLJ(String xiangDuiLJ) {
		this.xiangDuiLJ = xiangDuiLJ;
	}

	public String getYsWJM() {
		return ysWJM;
	}

	public void setYsWJM(String ysWJM) {
		this.ysWJM = ysWJM;
	}

	public String getWenJianM() {
		return wenJianM;
	}

	public void setWenJianM(String wenJianM) {
		this.wenJianM = wenJianM;
	}

	public TuPian(String id, WuZi wuZi, String xiangDuiLJ, String ysWJM,
			String wenJianM) {
		super();
		this.id = id;
		this.wuZi = wuZi;
		this.xiangDuiLJ = xiangDuiLJ;
		this.ysWJM = ysWJM;
		this.wenJianM = wenJianM;
	}

	public TuPian() {
		super();
	}
}
